import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.Arrays;

public class test1 {


    public static void main(String[] args){
        ClassPathXmlApplicationContext cxml = new ClassPathXmlApplicationContext("classpath:spring.xml");
        System.out.println(Arrays.toString(cxml.getBeanDefinitionNames()));
        cxml.getBean("studentBean");
    }
}
